\hypertarget{classDoubleLinkedList_1_1iterator}{}\doxysection{Double\+Linked\+List$<$ DT $>$\+::iterator Class Reference}
\label{classDoubleLinkedList_1_1iterator}\index{DoubleLinkedList$<$ DT $>$::iterator@{DoubleLinkedList$<$ DT $>$::iterator}}


继承了const\+\_\+iterator类，用于实现\+Node指针和const\+\_\+iterator的转换  




{\ttfamily \#include $<$doublelinkedlist.\+h$>$}



Inheritance diagram for Double\+Linked\+List$<$ DT $>$\+::iterator\+:
% FIG 0


Collaboration diagram for Double\+Linked\+List$<$ DT $>$\+::iterator\+:
% FIG 1
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classDoubleLinkedList_1_1iterator_a9b2f090babb672b094aa4bd290238d80}\label{classDoubleLinkedList_1_1iterator_a9b2f090babb672b094aa4bd290238d80}} 
\mbox{\hyperlink{classDoubleLinkedList_1_1iterator_a9b2f090babb672b094aa4bd290238d80}{iterator}} ()
\begin{DoxyCompactList}\small\item\em iterator 构造函数，使用初始化列表的方法，初始化为空; \end{DoxyCompactList}\item 
DT \& \mbox{\hyperlink{classDoubleLinkedList_1_1iterator_ae6cb0eac7eeb7bc0fbd4b6dcf5616e50}{operator$\ast$}} ()
\begin{DoxyCompactList}\small\item\em 重载$\ast$号（取值），针对传入非const list的情况，调用了const\+\_\+iterator类中的retrieve函数; \end{DoxyCompactList}\item 
const DT \& \mbox{\hyperlink{classDoubleLinkedList_1_1iterator_adc6bd0eb3863aa794989fea08a7b4247}{operator$\ast$}} () const
\begin{DoxyCompactList}\small\item\em 重载$\ast$号（取值），针对传入const list的情况，调用了const\+\_\+iterator类中的$\ast$重载函数; \end{DoxyCompactList}\item 
\mbox{\hyperlink{classDoubleLinkedList_1_1iterator}{iterator}} \& \mbox{\hyperlink{classDoubleLinkedList_1_1iterator_a18bcade792226cb8c59e90c5be0875f8}{operator++}} ()
\begin{DoxyCompactList}\small\item\em 重载++号（前置递增）将原来iterator类中的this指针所指的位置指向下一个位置; \end{DoxyCompactList}\item 
\mbox{\hyperlink{classDoubleLinkedList_1_1iterator}{iterator}} \mbox{\hyperlink{classDoubleLinkedList_1_1iterator_a4c7b251313ae3932fdb7f7781a5ab1c3}{operator++}} (int)
\begin{DoxyCompactList}\small\item\em 重载++号（后置递增）将原来iterator类中的this指针所指的位置指向下一个位置; \end{DoxyCompactList}\item 
\mbox{\hyperlink{classDoubleLinkedList_1_1iterator}{iterator}} \& \mbox{\hyperlink{classDoubleLinkedList_1_1iterator_a6e599dab684490c6339740d7a5cb8ae8}{operator-\/-\/}} ()
\begin{DoxyCompactList}\small\item\em 重载--号（前置递减）将原来iterator类中的this指针所指的位置指向上一个位置; \end{DoxyCompactList}\item 
\mbox{\hyperlink{classDoubleLinkedList_1_1iterator}{iterator}} \mbox{\hyperlink{classDoubleLinkedList_1_1iterator_a021d15fd698457d5c9cb74d26e017816}{operator-\/-\/}} (int)
\begin{DoxyCompactList}\small\item\em 重载--号（后置递减）将原来iterator类中的this指针所指的位置指向上一个位置; \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{classDoubleLinkedList_1_1iterator_ada0b7927d510a3dcb98ca16f27c485f2}{iterator}} (Node $\ast$p)
\begin{DoxyCompactList}\small\item\em iterator 构造函数，使用初始化列表的方法，将const\+\_\+iterator类初始化为p; \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Friends}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classDoubleLinkedList_1_1iterator_acd436ad14dcf75e42eec3f1544e934f3}\label{classDoubleLinkedList_1_1iterator_acd436ad14dcf75e42eec3f1544e934f3}} 
class \mbox{\hyperlink{classDoubleLinkedList_1_1iterator_acd436ad14dcf75e42eec3f1544e934f3}{Double\+Linked\+List$<$ DT $>$}}
\begin{DoxyCompactList}\small\item\em 使得\+Double\+Linked\+List

可以与const\+\_\+iterator类共享数据，iterator类中的函数均为\+Double\+Linked\+List

类中的友元函数; \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Additional Inherited Members}


\doxysubsection{Detailed Description}
\subsubsection*{template$<$typename DT$>$\newline
class Double\+Linked\+List$<$ DT $>$\+::iterator}

继承了const\+\_\+iterator类，用于实现\+Node指针和const\+\_\+iterator的转换 

\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{classDoubleLinkedList_1_1iterator_ada0b7927d510a3dcb98ca16f27c485f2}\label{classDoubleLinkedList_1_1iterator_ada0b7927d510a3dcb98ca16f27c485f2}} 
\index{DoubleLinkedList$<$ DT $>$::iterator@{DoubleLinkedList$<$ DT $>$::iterator}!iterator@{iterator}}
\index{iterator@{iterator}!DoubleLinkedList$<$ DT $>$::iterator@{DoubleLinkedList$<$ DT $>$::iterator}}
\doxysubsubsection{\texorpdfstring{iterator()}{iterator()}}
{\footnotesize\ttfamily template$<$typename DT $>$ \\
\mbox{\hyperlink{classDoubleLinkedList}{Double\+Linked\+List}}$<$ DT $>$\+::iterator\+::iterator (\begin{DoxyParamCaption}\item[{Node $\ast$}]{p }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [protected]}}



iterator 构造函数，使用初始化列表的方法，将const\+\_\+iterator类初始化为p; 


\begin{DoxyParams}{Parameters}
{\em p} & 传入的\+Node指针p; \\
\hline
\end{DoxyParams}


\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{classDoubleLinkedList_1_1iterator_ae6cb0eac7eeb7bc0fbd4b6dcf5616e50}\label{classDoubleLinkedList_1_1iterator_ae6cb0eac7eeb7bc0fbd4b6dcf5616e50}} 
\index{DoubleLinkedList$<$ DT $>$::iterator@{DoubleLinkedList$<$ DT $>$::iterator}!operator$\ast$@{operator$\ast$}}
\index{operator$\ast$@{operator$\ast$}!DoubleLinkedList$<$ DT $>$::iterator@{DoubleLinkedList$<$ DT $>$::iterator}}
\doxysubsubsection{\texorpdfstring{operator$\ast$()}{operator*()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily template$<$typename DT $>$ \\
DT\& \mbox{\hyperlink{classDoubleLinkedList}{Double\+Linked\+List}}$<$ DT $>$\+::iterator\+::operator$\ast$ (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



重载$\ast$号（取值），针对传入非const list的情况，调用了const\+\_\+iterator类中的retrieve函数; 

\begin{DoxyReturn}{Returns}
返回当前const\+\_\+iterator类中current指针的data值; 
\end{DoxyReturn}
\mbox{\Hypertarget{classDoubleLinkedList_1_1iterator_adc6bd0eb3863aa794989fea08a7b4247}\label{classDoubleLinkedList_1_1iterator_adc6bd0eb3863aa794989fea08a7b4247}} 
\index{DoubleLinkedList$<$ DT $>$::iterator@{DoubleLinkedList$<$ DT $>$::iterator}!operator$\ast$@{operator$\ast$}}
\index{operator$\ast$@{operator$\ast$}!DoubleLinkedList$<$ DT $>$::iterator@{DoubleLinkedList$<$ DT $>$::iterator}}
\doxysubsubsection{\texorpdfstring{operator$\ast$()}{operator*()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily template$<$typename DT $>$ \\
const DT\& \mbox{\hyperlink{classDoubleLinkedList}{Double\+Linked\+List}}$<$ DT $>$\+::iterator\+::operator$\ast$ (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



重载$\ast$号（取值），针对传入const list的情况，调用了const\+\_\+iterator类中的$\ast$重载函数; 

\begin{DoxyReturn}{Returns}
返回当前const\+\_\+iterator类中current指针的data值; ~\newline
 
\end{DoxyReturn}
\mbox{\Hypertarget{classDoubleLinkedList_1_1iterator_a18bcade792226cb8c59e90c5be0875f8}\label{classDoubleLinkedList_1_1iterator_a18bcade792226cb8c59e90c5be0875f8}} 
\index{DoubleLinkedList$<$ DT $>$::iterator@{DoubleLinkedList$<$ DT $>$::iterator}!operator++@{operator++}}
\index{operator++@{operator++}!DoubleLinkedList$<$ DT $>$::iterator@{DoubleLinkedList$<$ DT $>$::iterator}}
\doxysubsubsection{\texorpdfstring{operator++()}{operator++()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily template$<$typename DT $>$ \\
\mbox{\hyperlink{classDoubleLinkedList_1_1iterator}{iterator}}\& \mbox{\hyperlink{classDoubleLinkedList}{Double\+Linked\+List}}$<$ DT $>$\+::iterator\+::operator++ (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



重载++号（前置递增）将原来iterator类中的this指针所指的位置指向下一个位置; 

\begin{DoxyReturn}{Returns}
返回表示原来iterator类中的current指针的下一个位置的迭代器; 
\end{DoxyReturn}
\mbox{\Hypertarget{classDoubleLinkedList_1_1iterator_a4c7b251313ae3932fdb7f7781a5ab1c3}\label{classDoubleLinkedList_1_1iterator_a4c7b251313ae3932fdb7f7781a5ab1c3}} 
\index{DoubleLinkedList$<$ DT $>$::iterator@{DoubleLinkedList$<$ DT $>$::iterator}!operator++@{operator++}}
\index{operator++@{operator++}!DoubleLinkedList$<$ DT $>$::iterator@{DoubleLinkedList$<$ DT $>$::iterator}}
\doxysubsubsection{\texorpdfstring{operator++()}{operator++()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily template$<$typename DT $>$ \\
\mbox{\hyperlink{classDoubleLinkedList_1_1iterator}{iterator}} \mbox{\hyperlink{classDoubleLinkedList}{Double\+Linked\+List}}$<$ DT $>$\+::iterator\+::operator++ (\begin{DoxyParamCaption}\item[{int}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



重载++号（后置递增）将原来iterator类中的this指针所指的位置指向下一个位置; 


\begin{DoxyParams}{Parameters}
{\em int} & 参数只是用来区分不同的重载; \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
返回表示原来的iterator类中原来的this指针指向的位置的迭代器; 
\end{DoxyReturn}
\mbox{\Hypertarget{classDoubleLinkedList_1_1iterator_a6e599dab684490c6339740d7a5cb8ae8}\label{classDoubleLinkedList_1_1iterator_a6e599dab684490c6339740d7a5cb8ae8}} 
\index{DoubleLinkedList$<$ DT $>$::iterator@{DoubleLinkedList$<$ DT $>$::iterator}!operator-\/-\/@{operator-\/-\/}}
\index{operator-\/-\/@{operator-\/-\/}!DoubleLinkedList$<$ DT $>$::iterator@{DoubleLinkedList$<$ DT $>$::iterator}}
\doxysubsubsection{\texorpdfstring{operator-\/-\/()}{operator--()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily template$<$typename DT $>$ \\
\mbox{\hyperlink{classDoubleLinkedList_1_1iterator}{iterator}}\& \mbox{\hyperlink{classDoubleLinkedList}{Double\+Linked\+List}}$<$ DT $>$\+::iterator\+::operator-\/-\/ (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



重载--号（前置递减）将原来iterator类中的this指针所指的位置指向上一个位置; 

\begin{DoxyReturn}{Returns}
返回表示原来iterator类中的current指针的上一个位置的迭代器; 
\end{DoxyReturn}
\mbox{\Hypertarget{classDoubleLinkedList_1_1iterator_a021d15fd698457d5c9cb74d26e017816}\label{classDoubleLinkedList_1_1iterator_a021d15fd698457d5c9cb74d26e017816}} 
\index{DoubleLinkedList$<$ DT $>$::iterator@{DoubleLinkedList$<$ DT $>$::iterator}!operator-\/-\/@{operator-\/-\/}}
\index{operator-\/-\/@{operator-\/-\/}!DoubleLinkedList$<$ DT $>$::iterator@{DoubleLinkedList$<$ DT $>$::iterator}}
\doxysubsubsection{\texorpdfstring{operator-\/-\/()}{operator--()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily template$<$typename DT $>$ \\
\mbox{\hyperlink{classDoubleLinkedList_1_1iterator}{iterator}} \mbox{\hyperlink{classDoubleLinkedList}{Double\+Linked\+List}}$<$ DT $>$\+::iterator\+::operator-\/-\/ (\begin{DoxyParamCaption}\item[{int}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



重载--号（后置递减）将原来iterator类中的this指针所指的位置指向上一个位置; 


\begin{DoxyParams}{Parameters}
{\em int} & 参数只是用来区分不同的重载; \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
返回表示原来的iterator类中原来的this指针指向的位置的迭代器; 
\end{DoxyReturn}


The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
doublelinkedlist.\+h\end{DoxyCompactItemize}
